package main.pmc;

import cn.hutool.core.io.FileUtil;
import utils.StringUtil;

import java.io.File;
import java.util.List;

import static utils.StringUtil.getProjectPath;

/**
 * @Author: 葛成瑞
 * @Date: 2025/2/13 14:28
 */
public class BrowserHt {
    public static void main(String[] args) {
        List<String> pmcs = FileUtil.readUtf8Lines(getProjectPath() + "\\src\\main\\java\\main\\pmc\\pmclist2.log");
        for (String pmc : pmcs) {
            String pmcUrl = "https://pmc.ncbi.nlm.nih.gov/articles/PMC11724815";
            StringUtil.OpenBrowser(pmcUrl.replace("PMC11724815", pmc));

        }


    }
}
